package org.one.stone.soup.db.storage;

import java.io.IOException;

public interface RandomAccessStream {

	long getFilePointer() throws IOException;

	long length() throws IOException;

	int skipBytes(int chunkSize) throws IOException;

	byte readByte() throws IOException;

	void write(byte[] chunk) throws IOException;

	long readLong() throws IOException;

	void writeByte(int i) throws IOException;

	void seek(long l) throws IOException;

	int read(byte[] chunk, int i, int chunkSize) throws IOException;

	void writeLong(long l) throws IOException;

}
